package com.jhgsys.internal.workflow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * 流程申请审核人员表 Entity
 *
 * @author fenghaijun
 * @date 2024-07-19 13:53:31
 */
@Data
@TableName("workflow_apply_review")
public class WorkflowApplyReview implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "workflow_apply_review_id", type = IdType.ASSIGN_UUID)
    private String workflowApplyReviewId;

    /**
     * 租户Id
     */
    @TableField("tenant_id")
    @NotNull(message = "{required}")
    private String tenantId;

    /**
     * 流程申请Id
     */
    @TableField("workflow_apply_id")
    @NotNull(message = "{required}")
    private String workflowApplyId;

    /**
     * 流程节点Id
     */
    @TableField("workflow_node_id")
    @NotNull(message = "{required}")
    private String workflowNodeId;

    /**
     * 审核用户来源;1：流程分配 2：业务加签
     */
    @TableField("review_user_type")
    @Size(max = 2, message = "{noMoreThan}")
    private String reviewUserType;

    /**
     * 审核用户Id
     */
    @TableField("user_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String userId;

    /**
     * 审核用户
     */
    @TableField("user_name")
    @NotBlank(message = "{required}")
    @Size(max = 90, message = "{noMoreThan}")
    private String userName;

    /**
     * 审核用户
     */
    @TableField("real_name")
    @NotBlank(message = "{required}")
    @Size(max = 90, message = "{noMoreThan}")
    private String realName;

    /**
     * 审核状态；0：待审核 1：已审核
     */
    @TableField("review_status")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String reviewStatus;

    /**
     * 新增人
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 新增时间
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;

}